﻿using System;

namespace CzfSDK
{
	public static class LogicTool
	{
		public static void AssertNotNull(object obj, string msg = "断言失败!")
		{
			Assert (obj != null, msg);
		}

		/// <summary>
		/// 断言
		/// </summary>
		/// <param name="bln">If set to <c>true</c> bln.</param>
		/// <param name="msg">Message.</param>
		public static void Assert(bool bln, string msg = "断言失败!")
		{
			if (!bln)
				throw new Exception (msg);
		}
	}
}

